package com.bruce.demo2.patterns.demo3.behavioral.demo15.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 订单类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/8/31 7:13
 */
public class Order {
    /**
     * 餐桌编号
     */
    private int DiningTable;

    /**
     * 所下的餐品及份数
     */
    private Map<String, Integer> foodDir = new HashMap<String, Integer>();

    public int getDiningTable() {
        return DiningTable;
    }

    public void setDiningTable(int diningTable) {
        DiningTable = diningTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFood(String name, int num) {
        this.foodDir.put(name, num);
    }
}
